<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>index</title>
    <script src="163-angular.min.js"></script>
    <script src="model.js"></script>
    <link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
<h1>请假管理</h1>
<p>
     <a href="index.html">示例程序</a>
    <a href="user.html">用户管理</a>
    <a href="login.html">退出</a>
    <a href="model.html">流程管理</a>
</p>
<div ng-app="modelApp">

  <a href="/model/create">创建</a>

    <div ng-controller="modelCtrl">
        <h2 ng-init="getAllModel()">待我审核的请假</h2>
        <table border="0">
            <tr>
                <td>流程id</td>
                <td>创建时间</td>
                <td>名称</td>
                <td>描述</td>
                <td>版本</td>
                <td>操作</td>
            </tr>
            <tr ng-repeat="vacTask in modelList">
                <td>{{vacTask.id}}</td>
                <td>{{vacTask.createTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
                <td>{{vacTask.name}}</td>
                <td>{{vacTask.desc}}</td>
                <td>{{vacTask.version}}</td>
                <td>
                    <a href='../static/modeler.html?modelId={{vacTask.id}}'>编辑</a>
                    <button type="button" ng-click="">删除</button>
                </td>
            </tr>
        </table>
    </div>
 
</div>
</body>
</html>